package com.qinggeng.project.api.dto;

import com.qinggeng.project.system.domain.OrdersGift;
import com.qinggeng.project.system.domain.Shop;
import com.qinggeng.project.system.domain.UserAddress;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 预下单订单详情
 */
@Data
public class AddOrdersInfoDto {

    //收货地址
    private UserAddress address;

    //配送点
    private DistributionPointDto point;

    //配送类型
    private String distType;

    //商品列表
    private List<AddOrdersInfoGoodsDto> goodsList;

    private List<OrdersGift> giftList;

    //配送时间
    private String distTime;

    //自取取货时间
    private String pickTime;

    //预留手机号
    private String pickPhone;

    //商品总价
    private BigDecimal totalPrice;

    //优惠价格
    private BigDecimal reducePrice;

    //支付金额
    private BigDecimal payPrice;

    //配送费
    private BigDecimal distPrice;

    //备注
    private String remark;

    //距离
    private Double distance;

    //所属商户
    private Shop shop;

    //换购价
    private BigDecimal exchangePrice;

    private String ordersType;

    private Long giftId;

    //订单特点 '单商品下单'=1  '拼团下单'=2
    private String ordersCharacter;

    private Date distDateTime;
    //优惠数据
    private List<FavorableDTO> favorableDTOS;
    //分享状态 1 分享 0分享
    private String shareStatus;


    public AddOrdersInfoDto() {

    }

    public AddOrdersInfoDto(String ordersType, String distTime, String pickTime, String pickPhone,String remark) {
        this.ordersType=ordersType;
        this.distTime=distTime;
        this.pickTime=pickTime;
        this.pickPhone=pickPhone;
        this.remark=remark;
    }
}
